import request from '@/utils/request'

// 查询补数记录列表
export function listComplement(query) {
  return request({
    url: '/oms/complement/list',
    method: 'get',
    params: query
  })
}

// 查询补数记录详细
export function getComplement(id) {
  return request({
    url: '/oms/complement/' + id,
    method: 'get'
  })
}

// 新增补数记录
export function addComplement(data) {
  return request({
    url: '/oms/complement',
    method: 'post',
    data: data
  })
}

// 修改补数记录
export function updateComplement(data) {
  return request({
    url: '/oms/complement',
    method: 'put',
    data: data
  })
}

// 删除补数记录
export function delComplement(id) {
  return request({
    url: '/oms/complement/' + id,
    method: 'delete'
  })
}
